﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OfficeSVN {

    public partial class SvnCredentialsForm : Form {
        public SvnCredentialsForm() {
            InitializeComponent();
        }

        public SvnCredentialsForm(string repository, string username, string password): this() {
            this.Repository = repository;
            this.Username = username;
            this.Password = password;
        }

        public string Repository {
            get { return this.repositoryLabel.Text; }
            set { this.repositoryLabel.Text = value; }
        }
        public string Username {
            get { return this.userNameTextBox.Text; }
            set { this.userNameTextBox.Text = value; }
        }
        public string Password {
            get { return this.passwordTextBox.Text; }
            set { this.passwordTextBox.Text = value; }
        }
        public bool SaveAuthentication {
            get { return this.saveAuthenticationCheckBox.Checked; }
        }

        private void acceptButton_Click(object sender, EventArgs e) {
            this.Close();
        }
    }
}
